<!DOCTYPE html>
<html>
<head>
<title>啤模信息表; InnoDB free: 9216 kB</title>
#parse("sys/header.html")
</head>
<body>
<div id="rrapp">
      <div class="container bg-white">
	      <!--2.标题-->
	      <h1 class="text-center padding ">啤模信息表</h1>
	      <!--3.列表-->
	      <div class="clear">
	         <p class=" left-margin text bottom-margin">条件查询</p>
	      </div>
	      <form class="navbar-form ">
	         <div class="lf left-margin bottom-margin">
	            <label for="cm">啤模编号：</label>
	            <input class="form-control" type="text" v-model="bEERMOLDID"  placeholder="啤模编号">
	         </div>
	         <div class="rt right-margin bottom-margin">
	            <label for="dm">客户编号：</label>
	            <input class="form-control" type="text" v-model="cUSTOMERCODE"  placeholder="客户编号">
	         </div>
	
	      </form>
	</div>
    <div class="container text-center">
       <button type="button" class="btn btn-default" @click="query">查询</button>
       <button type="button" class="btn btn-default" @click="reset">重置</button>
    </div>
	<div class="grid-btn">
<!-- 		<a class="btn btn-default" href="beermold_add.html">新增</a> -->
		<button type="button" class="btn btn-default" v-if="editFlag==0 || editFlag==1" @click="add">新增</button>
		<button type="button" class="btn btn-default" v-if="editFlag==0" @click="openCellEdit">编辑</button>
		<button type="button" class="btn btn-default" v-if="editFlag==2" @click="updateCellEdit">保存编辑</button>
		<button type="button" class="btn btn-default" v-if="editFlag==2" @click="cancelCellEdit">取消编辑</button>
		<button type="button" class="btn btn-default" v-if="editFlag==0 || editFlag==1" @click="del(editFlag)">删除</button>
		<button type="button" class="btn btn-default" v-if="editFlag==1" @click="cancelCellEdit">取消新增</button>
		<button type="button" class="btn btn-default" v-if="editFlag==1" @click="saveCellEdit">保存新增</button>
		<button type="button" class="btn btn-default" v-if="editFlag==0" @click="importEdit">导入</button>
		<button type="button" class="btn btn-default" v-if="editFlag==3" @click="unImportEdit">取消导入</button>
		<button type="button" class="btn btn-default" v-if="editFlag==0" @click="exportBeerMoldExcel">导出</button>
	</div>
	<div v-if="editFlag==3" style="height: 70px;">
		        <div style="display: inline-block;">
		            <span style="color: #ff0000;"> * </span>
		            <span>选择文件：</span>
		            <span><input type="file" id="excelFile" name="excelFile" placeholder="请选择" accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel" style="width: 200px; height: 28px; display: inline;"></span>
		            <input type="text" id="fileUrl" name="fileUrl" style="display: none;">
		            <input type="text" id="fileName" name="fileName" style="display: none;">
		            <input type="text" id="fileType" name="fileType" style="display: none;">
		        </div>
		        <button type="button" class="btn btn-default" @click="importBeerMoldExcel">上传</button>
		</div>
    <table id="jqGrid"></table>
    <div id="jqGridPager"></div>
</div>

<script src="${rc.contextPath}/js/paper/beermold.js?_${date.systemTime}"></script>
</body>
</html>